package red.lsk.business.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import red.lsk.common.annotation.Excel;
import red.lsk.common.core.domain.BaseEntity;

/**
 * 充值规则管理对象 biz_discount_config
 * 
 * @author ruoyi
 * @date 2024-05-09
 */
public class BizDiscountConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private String id;

    /** 折扣比例(九折为90,两位小数) */
    @Excel(name = "折扣比例(九折为90,两位小数)")
    private BigDecimal ratio;

    /** 启用状态 */
    @Excel(name = "启用状态")
    private String state;

    /** 触发阈值(满XX元) */
    @Excel(name = "触发阈值(满XX元)")
    private Long threshold;

    /** 序号 */
    @Excel(name = "序号")
    private Long sortNum;

    /** 说明 */
    @Excel(name = "说明")
    private String remarks;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setRatio(BigDecimal ratio) 
    {
        this.ratio = ratio;
    }

    public BigDecimal getRatio() 
    {
        return ratio;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }
    public void setThreshold(Long threshold) 
    {
        this.threshold = threshold;
    }

    public Long getThreshold() 
    {
        return threshold;
    }
    public void setSortNum(Long sortNum) 
    {
        this.sortNum = sortNum;
    }

    public Long getSortNum() 
    {
        return sortNum;
    }
    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("ratio", getRatio())
            .append("state", getState())
            .append("threshold", getThreshold())
            .append("sortNum", getSortNum())
            .append("remarks", getRemarks())
            .toString();
    }
}
